import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Index from '@/components/Index'
import Navi from '@/components/front/public/Navi'
import Head from '@/components/front/public/Head'
import Banner from '@/components/front/public/banner/Banner'
import Basic from '@/components/Basic'
import Basic2 from '@/components/Basic2'
import Login from '@/components/Login'
import MemberPage from '@/components/back/member/MemberPage'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/Hello',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/Navi',
      name: 'Navi',
      component: Navi
    },
    {
      path: '/Head',
      name: 'Head',
      component: Head
    },
    ,
    {
      path: '/Banner',
      name: 'Banner',
      component: Banner
    },
    {
      path: '/Basic',
      name: 'Basic',
      component: Basic
    },
    ,
    {
      path: '/Basic2',
      name: 'Basic2',
      component: Basic2
    },
    {
      path: '/Login',
      name: 'Login',
      component: Login
    },
    ,
    {
      path: '/MemberPage',
      name: 'MemberPage',
      component: MemberPage,
      meta: {
        requireAuth: true,  // 添加该字段，表示进入这个模块路由是需要登录的
      }
    }
  ]
})
